﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Main.Master" AutoEventWireup="true"
    CodeBehind="Create.aspx.cs" Inherits="APMS.WebSite.Views.Todo.Create" %>

<asp:Content ID="ScriptContent" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="PageTitleContent" ContentPlaceHolderID="PageTitleHolder" runat="server">
    <h2>Create New Todo</h2>
    <p class="desc">Todo is List of future desired work to be done to Project. It can help you organize work with others.</p>
</asp:Content>
<asp:Content ID="NavigationMenuContent" ContentPlaceHolderID="NavigationMenuHolder" runat="server">
    <%=Html.RenderUserControl("~/Views/Shared/UserControls/MainNav.ascx", ViewData[BaseController.MAIN_NAV])%>
</asp:Content>
<asp:Content ID="CommandLinkContent" ContentPlaceHolderID="CommandLinkHolder" runat="server">
</asp:Content>
<asp:Content ID="SidebarContent" ContentPlaceHolderID="SidebarHolder" runat="server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="ContentHolder" runat="server">
    <form method="post" action="/InProject/<%=ViewData.Model.CurrentProject.ProjectID %>/Todo/Create">
    <div id="mainForm">
        <% if (ViewData[BaseController.KEY_ERROR_MSG] != null)
           { %>
        <div class="error"><%=ViewData[BaseController.KEY_ERROR_MSG].ToString()%></div>
        <% } %>
        
        <h3>Name</h3>
        <p class="blockintro">Give the name of this todo list</p>
        <div class="block">
            <p><%=Html.TextBox("todoName", new { id = "tx_todoName", title = "Todo Name", size = "50" })%></p>
        </div>
        
        <%-- Submit Action--%>
        <div class="action">
            <%-- TODO: Validate Form --%>
            <input id="bt_save" type="submit" class="button" value="Create this list" /><span> or Cancel</span>
        </div>
    </div>
    </form>
</asp:Content>
